Port to GitLab API v4 / python-gitlab>=1.3.0. #7
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
(Tested with python-gitlab 1.3.0 and 3.9.0.) GitLab no longer supports API v3 (since 11.0), so the port to API v4 is required to make this work at all with any recent version of GitLab (i.e., GitLab >= 11.0).
requirements/_base.txt: Bump python-gitlab requirement to >=1.3.0.
kanboard_gitlab/importer.py: Import requests globally, not from gitlab. Port to GitLab API v4: groups.search is gone, use groups.list(search=…) instead; a GroupProject must be explicitly converted to a full Project; a user is now a dict, so use ['username'] instead of .username on users.
README.adoc: Bump minimum required GitLab version to 9.0.0, where API v4 was introduced.